package com.laboratory.miniolearning.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "minio")
public class MinioProperties {

    /**
     * MinIO 服务器地址
     */
    private String endpoint;

    /**
     * 账号
     */
    private String accessKey;

    /**
     * 密码
     */
    private String secretKey;

    /**
     * 存储桶
     */
    private String bucket;

    /**
     * 公开读
     */
    private Boolean publicRead;

    /**
     * 公开读的域名
     */
    private String publicDomain;

    /**
     * 预签名过期时间
     */
    private Integer preSignedExpirySeconds;

}
